package youleche.com.sql.factory;

import java.sql.Connection;

/**
 * 连接工厂
 * @author Administrator
 *
 */
public class ConnectionFactory {
	/**
	 * 获取AutoTable读连接
	 * @return AutoTable连接
	 */
	public static Connection getAutoTableReadConnection(){
		return ConnectionHelper.getConnection("autotable");
	}
	
	/**
	 * 获取AutoTable写连接
	 * @return AutoTable连接
	 */
	public static Connection getAutoTableWriteConnection(){
		return ConnectionHelper.getConnection("autotable");
	}
}
